import basic_ptr as bp
puchar = bp.PUCHAR()
puchar.assign(255)

pchar = bp.PCHAR()
pchar.assign('a')

puint = bp.PUINT()
puint.assign(0xFFFFFFFF)

pi = 3.1415926
double_ptr = bp.get_double_ptr()
pdouble = bp.PDOUBLE.frompointer(double_ptr)
assert pdouble.value() == 1.0
pdouble.assign(pi)

bp.add_one(puchar, pchar, puint, double_ptr)
assert puchar.value() == 0
assert pchar.value() == 'b'
assert puint.value() == 0
assert pdouble.value() == pi + 1.0

